package cn.xinfei.xdecision.engine;

import cn.xinfei.xdecision.model.DecisionApiRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("xdecision-engine-server")
public interface RiskEngineApiInterface {

    @RequestMapping(value = "/engine/decision", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public String decision(@RequestBody DecisionApiRequest apiRequest) ;
}


